<?php

class sfGuardFormSignin extends sfForm
{
  public function configure()
  {
    $this->setWidgets(array(
      'username' => new sfWidgetFormInput(),
      'password' => new sfWidgetFormInput(array('type' => 'password')),
      'remember' => new sfWidgetFormInputCheckbox(),
    ));

    $this->setValidators(array(
      'username' => new sfValidatorString(),
      'password' => new sfValidatorString(),
      'remember' => new sfValidatorBoolean(),
    ));

    $this->validatorSchema->setPostValidator(new sfGuardValidatorUser());

    $this->widgetSchema->setNameFormat('signin[%s]');
	$this->widgetSchema['username']->setLabel('Usuario');
	//$this->widgetSchema['username']->setattribute('size','100');
	$this->widgetSchema['username']->setattribute('class','text ui-widget-content ui-corner-all');
	$this->widgetSchema['password']->setLabel('Clave');
	//$this->widgetSchema['password']->setattribute('size','30');
	$this->widgetSchema['password']->setattribute('class','text ui-widget-content ui-corner-all');
	$this->widgetSchema['remember']->setLabel('Recordarme');
	
	
  }
}
